#ifndef DISPATCHER_H
#define DISPATCHER_H
#include <Channel.h>
struct EventLoop;
struct Dispatcher {
    void* (*init)();
    int (*add)(struct Channel* channel, struct EventLoop* evLoop);
    int (*remove)(struct Channel* channel, struct EventLoop* evLoop);
    int (*modify)(struct Channel* channel, struct EventLoop* evLoop);
    int (*dispatch)(struct EventLoop*, int timeout);
    int (*clear)(struct EventLoop* evLoop);
};

#endif // DISPATCHER_H
